import java.lang.reflect.Array;
import java.util.Arrays;

public class Solution {
    public static void main(String[] args) {

    }
    public int smallestEvenMultiple(int n) {
        if (n <= 2) {
            return 2;
        }
        else {
            for (int i = n; ; i++) {
                if((i % 2 == 0) && (i % n == 0)) {
                    return i;
                }
            }
        }
    }

    public static void main1(String[] args) {
        System.out.println(Arrays.toString(twoSum(new int[] {2,10,17,12}, 8)));
    }
    public static int[] twoSum(int[] nums, int target) {
        int n = nums.length;
        for (int i = 0; i < n; i++) {
            for (int j = i + 1; j < n; j++) {
                if (nums[i] + nums[j] == target) {
                    return new int[] {i, j};
                }
            }
        }
        return new int[] {0,0};
    }
}